<?php require_once('include/header.php'); ?>
<?
require_once("admin/classes/mail.php");

if($_POST['submit'] != ""){

$gblAdminEmail = "support@eparinay.com";

$gbl_request_email = "support@eparinay.com";

	$subject = "eParinay.com: Received Abuse User from ".$_POST['sender_email'];

	$body = "<br>Abuse User's ID:".$_POST['abuse_id'];
	$body = "<br>Abuse User's Name:".$_POST['abuse_name'];
	$body = "<br>Abuse User's Email Address:".$_POST['abuse_email'];
	$body = "<br>Abuse User's Details:".$_POST['abuse_details'];	

	$body .= "<BR>";

	$header = "From: ".$_POST['sender_email']."\r\n";

	$header .= "MIME-Version: 1.0\r\n";

	$header .= "Content-type: text/html; charset=iso-8859-1\r\n";

	if($gblAdminEmail){

		//mail_new(<to>,<subject>,<body_mail>,<header>,<from>,<CC>);

		mail_new($gbl_request_email,$subject,$body,$header,$_POST['sender_email'],"purabdk@yahoo.co.in");



		$mesg = "Thank You !! for reporting Abuse User. We will be get back to you soon.";

	} else {

		$mesg ="An error has occured !! Please try again.";

	}

}

?>

      <div id="middle_container_for_innerpage">
      <div id="innerpage_top_image"><img src="images/images/innerpage_top_corner_820x5.jpg"  height="5" /></div> 
      <div id="middle_inner_container">
      <?php require_once('include/left_menu.php'); ?>
        
        <div id="inner_page_middle_data">
        	<div id="page_heading">Report Abuse User</div>
 			<div id="feedback_row" style="height:5px; padding:0px;">
				<? if($mesg){ ?>
                <?=$mesg?>
                <? } else { ?>
            </div>
            <div id="feedback_margins">       
			<div id="feedback_form_container">
            	<form action="feedback.php" method="POST" name="frmreport" id="frmreport">
                	<div id="feedback_row">
                    	<div id="feedback_row_text">Your Email:<span class="red-txt">*</span></div>
                        <div id="feedback_row_fields"><input name="sender_email" type="text" class="textbox" id="sender_email" style="width:250px" maxlength="100">
                        </div>
                    </div>
                	<div id="feedback_row">
                    	<div id="feedback_row_text">Abuser ID:<span class="red-txt">*</span></div>
						<div id="feedback_row_fields"><input name="abuse_id" type="text" class="textbox" id="abuse_id" style="width:250px" onKeyPress="return ValidateAlphaNumeric(this,event);" maxlength="100">
						</div>
                    </div>
					<div id="feedback_row">
                    	<div id="feedback_row_text">Abuser Name:<span class="red-txt">*</span></div>
						<div id="feedback_row_fields"><input name="abuse_name" type="text" class="textbox" id="abuse_name" style="width:250px" onKeyPress="return ValidateAlphaNumeric(this,event);" maxlength="100">
					  </div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">Abuser Email:<span class="red-txt">*</span></div>
                        <div id="feedback_row_fields"><input name="abuse_email" type="text" class="textbox" id="abuse_email" style="width:250px" maxlength="100">
                      </div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">Details:<span class="red-txt">*</span></div>
					  <div id="feedback_row_fields"><textarea name="abuse_details" class="textbox" id="abuse_details" style="height:50px; width:250px;"></textarea>
					  </div>
                    </div>
                    <div id="feedback_row">
                    	<div id="feedback_row_text">&nbsp;</div>
                        <div id="feedback_row_fields">
                        	<div id="button_border"><input name="submit" type="submit" class="button" id="submit" value="Submit Report" onclick="abuse_report();" />
                       	  </div>
                        </div>
                    </div>
				</form>
			</div>
            </div>






<div id="code"><?}?></div>

        </div>
        

       
       
      </div> 
      <div id="corner_container_bottom_for_innerpage"><img src="images/images/innerpage_bottom_corner_820x10.jpg"  height="10" /></div>
    </div> 
      <!-- middle_container ends -->
    
    
        
    
<?php require_once('include/footer.php'); ?>
